package com.bridgeintelligent.tag.customer.looklike;

import lombok.Data;
import java.io.Serializable;

@Data
public class LookLikeResp implements Serializable {

    private static final int SUCCESS = 0;

    private static final int ERROR = -1;

    private Integer code;

    private String message;

    private Object data;

    private  LookLikeResp(){}

    public static LookLikeResp ok(){
        LookLikeResp resp = new LookLikeResp();
        resp.setCode(SUCCESS);
        resp.setMessage("操作成功");
        return resp;
    }

    public static LookLikeResp ok(Object data){
        LookLikeResp resp = new LookLikeResp();
        resp.setCode(SUCCESS);
        resp.setData(data);
        resp.setMessage("操作成功");
        return resp;
    }

    public static LookLikeResp error(String message){
        LookLikeResp resp = new LookLikeResp();
        resp.setCode(ERROR);
        resp.setMessage(message);
        return resp;
    }
}
